import React from "react";
import { connect } from "react-redux";


const Child2 = (props) => {
  console.log("props := ",props)
  return (
    <div>
      <font style={props?.style}>
        hello child !!! ~~~~~~ 
      </font>
    </div>
  )
}
const mapStateToProps = (s) => {
  // console.log('sss =: ',s)
  // return s
  return {
    style:s?.reducer1
  }
}

export default connect(mapStateToProps,null)(Child2)

